package com.schoolgard.entitybean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Mapcontain entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "MAPCONTAIN")
public class Mapcontain implements java.io.Serializable {

	// Fields

	private Long id;
	private Long mapid;
	private Long containid;
	private Long type;
	private Long posx;
	private Long posy;
	private String name;
	private String svrip;

	// Constructors

	/** default constructor */
	public Mapcontain() {
	}

	/** minimal constructor */
	public Mapcontain(Long id) {
		this.id = id;
	}

	/** full constructor */
	public Mapcontain(Long id, Long mapid, Long containid, Long type,
			Long posx, Long posy, String name, String svrip) {
		this.id = id;
		this.mapid = mapid;
		this.containid = containid;
		this.type = type;
		this.posx = posx;
		this.posy = posy;
		this.name = name;
		this.svrip = svrip;
	}

	// Property accessors
	@Id
	@Column(name = "ID", unique = true, nullable = false, precision = 10, scale = 0)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "MAPID", precision = 10, scale = 0)
	public Long getMapid() {
		return this.mapid;
	}

	public void setMapid(Long mapid) {
		this.mapid = mapid;
	}

	@Column(name = "CONTAINID", precision = 10, scale = 0)
	public Long getContainid() {
		return this.containid;
	}

	public void setContainid(Long containid) {
		this.containid = containid;
	}

	@Column(name = "TYPE", precision = 10, scale = 0)
	public Long getType() {
		return this.type;
	}

	public void setType(Long type) {
		this.type = type;
	}

	@Column(name = "POSX", precision = 10, scale = 0)
	public Long getPosx() {
		return this.posx;
	}

	public void setPosx(Long posx) {
		this.posx = posx;
	}

	@Column(name = "POSY", precision = 10, scale = 0)
	public Long getPosy() {
		return this.posy;
	}

	public void setPosy(Long posy) {
		this.posy = posy;
	}

	@Column(name = "NAME", length = 128)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "SVRIP", length = 100)
	public String getSvrip() {
		return this.svrip;
	}

	public void setSvrip(String svrip) {
		this.svrip = svrip;
	}

}